package com.ppt.declaraciones;

import javax.persistence.Entity;
import javax.swing.JPanel;
import java.awt.GridLayout;
import javax.swing.border.TitledBorder;
import javax.swing.border.LineBorder;
import java.awt.Color;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.SwingConstants;
import javax.swing.JButton;
import javax.swing.border.EtchedBorder;
import javax.swing.border.EmptyBorder;
import java.awt.BorderLayout;

@Entity
public class ManoDuplicadaPanel extends JPanel {
	public ManoDuplicadaPanel() {
		setBorder(new TitledBorder(new LineBorder(new Color(0, 0, 0), 1, true), "Mano de Obra Duplicada", TitledBorder.CENTER, TitledBorder.TOP, null, Color.BLACK));
		setLayout(new BorderLayout(0, 0));
		
		JPanel panel = new JPanel();
		panel.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));
		add(panel, BorderLayout.NORTH);
		
		JLabel lblCodOperario1 = new JLabel("C\u00F3digo Operario:");
		lblCodOperario1.setHorizontalAlignment(SwingConstants.CENTER);
		panel.add(lblCodOperario1);
		
		txtCodOperario1 = new JTextField();
		txtCodOperario1.setHorizontalAlignment(SwingConstants.CENTER);
		panel.add(txtCodOperario1);
		txtCodOperario1.setColumns(10);
		
		JPanel panel_1 = new JPanel();
		add(panel_1);
		
		JButton btnAadirOperario = new JButton("A\u00F1adir Operario");
		panel_1.add(btnAadirOperario);
	}

	private static final long serialVersionUID = 1L;
	private JTextField txtCodOperario1;

}
